package com.lottery.ruok.lottrey.retrofitModule.response;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ASUS on 2017/11/3.
 */

public class GetRoomUsersResponse implements Serializable {

    /**
     * room_id : 34
     * avatar : https://api.ruok.co/upload/2017-11/505_20171104074808.png
     * room_name : 火爆彩票dl_gudong1_1
     * list : [{"username":"test1","avatar":"https://api.ruok.co/upload/2017-11/6_20171104015138.png","chatroom_role":"1"},{"username":"test4","avatar":"https://api.ruok.co/upload/2017-10/276_20171015080443.png","chatroom_role":"1"},{"username":"test5","avatar":"https://api.ruok.co/upload/2017-11/277_20171104074816.png","chatroom_role":"1"},{"username":"465ae9","avatar":"https://api.ruok.co/upload/2017-11/505_20171104074808.png","chatroom_role":"1"}]
     */

    private String room_id;
    private String avatar;
    private String room_name;
    private List<ListBean> list;
    private int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getRoom_id() {
        return room_id;
    }

    public void setRoom_id(String room_id) {
        this.room_id = room_id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getRoom_name() {
        return room_name;
    }

    public void setRoom_name(String room_name) {
        this.room_name = room_name;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable, Cloneable {
        /**
         * username : test1
         * avatar : https://api.ruok.co/upload/2017-11/6_20171104015138.png
         * chatroom_role : 1  聊天室 1=会员[默认] 2=超级管理员 3=普通管理员 5=代理总代股东
         */

        private String username;
        private String avatar;
        private String chatroom_role;
        private int chatroom_block;
        private int online_status;
        private int dataType;//0是服务器获取的数据  1是聊天记录的数据  2是搜索记录的数据
        private String ry_id;
        private String nickname;
        private String id;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getChatroom_block() {
            return chatroom_block;
        }

        public void setChatroom_block(int chatroom_block) {
            this.chatroom_block = chatroom_block;
        }

        public boolean isOnline() {
            return online_status == 1;
        }

        public int getOnline_status() {
            return online_status;
        }

        public void setOnline_status(int online_status) {
            this.online_status = online_status;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getChatroom_role() {
            return chatroom_role;
        }

        public void setChatroom_role(String chatroom_role) {
            this.chatroom_role = chatroom_role;
        }

        public int getDataType() {
            return dataType;
        }

        public void setDataType(int dataType) {
            this.dataType = dataType;
        }

        @Override
        public GetRoomUsersResponse.ListBean clone() throws CloneNotSupportedException {
            return (GetRoomUsersResponse.ListBean) super.clone();
        }

        public String getRy_id() {
            return ry_id;
        }

        public void setRy_id(String ry_id) {
            this.ry_id = ry_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }
    }
}
